<?php

use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        //
		$arr=[];
		for($i=0;$i<100;$i++){
			$temp=[];
			$temp['username']=str_random(15);
			$temp['email']=str_random(10).'@163.com';
			$temp['password']=Hash::make('12345678');
			$temp['profile']='/Uploads/img/20170305/148868721444609.jpg';
			$temp['intro']=str_random(20);
			$temp['created_at'] = date('Y-m-d H:i:s');
        	$temp['updated_at'] = date('Y-m-d H:i:s');
			$arr[]=$temp;		
		}
		DB::table('users')->insert($arr);
    }
}
